错误:从计算机安装Python库

您所在的位置:网站首页 python安装tar gz 错误:从计算机安装Python库

错误:从计算机安装Python库

2023-05-08 19:09| 来源: 网络整理| 查看: 265

我有windows 10. Python 3.10。和最新版本的pip。

我下载了一些Python库到我的计算机上。每次我试图安装它们时,我都会得到以下错误。例如:我尝试使用以下命令安装numpy:

pip install C:\Users\Tania\Downloads\numpy-1.23.1.tar.gz

我知道这个错误:

Defaulting to user installation because normal site-packages is not writeable Processing c:\users\tania\downloads\numpy-1.23.1.tar.gz Installing build dependencies ... error error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [8 lines of output] Ignoring packaging: markers 'platform_machine == "arm64"' don't match your environment WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/setuptools/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/setuptools/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/setuptools/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/setuptools/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/setuptools/ ERROR: Could not find a version that satisfies the requirement setuptools==59.2.0 (from versions: none) ERROR: No matching distribution found for setuptools==59.2.0 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

我还试图通过命令安装:

pip install numpy

我也犯了个错误。



【本文地址】


今日新闻


推荐新闻


    CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3